package com.pctx.bibacrmrbac.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class PermissionOrderExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public PermissionOrderExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andUuidIsNull() {
            addCriterion("uuid is null");
            return (Criteria) this;
        }

        public Criteria andUuidIsNotNull() {
            addCriterion("uuid is not null");
            return (Criteria) this;
        }

        public Criteria andUuidEqualTo(String value) {
            addCriterion("uuid =", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidNotEqualTo(String value) {
            addCriterion("uuid <>", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidGreaterThan(String value) {
            addCriterion("uuid >", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidGreaterThanOrEqualTo(String value) {
            addCriterion("uuid >=", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidLessThan(String value) {
            addCriterion("uuid <", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidLessThanOrEqualTo(String value) {
            addCriterion("uuid <=", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidLike(String value) {
            addCriterion("uuid like", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidNotLike(String value) {
            addCriterion("uuid not like", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidIn(List<String> values) {
            addCriterion("uuid in", values, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidNotIn(List<String> values) {
            addCriterion("uuid not in", values, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidBetween(String value1, String value2) {
            addCriterion("uuid between", value1, value2, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidNotBetween(String value1, String value2) {
            addCriterion("uuid not between", value1, value2, "uuid");
            return (Criteria) this;
        }

        public Criteria andOrderNoIsNull() {
            addCriterion("order_no is null");
            return (Criteria) this;
        }

        public Criteria andOrderNoIsNotNull() {
            addCriterion("order_no is not null");
            return (Criteria) this;
        }

        public Criteria andOrderNoEqualTo(String value) {
            addCriterion("order_no =", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoNotEqualTo(String value) {
            addCriterion("order_no <>", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoGreaterThan(String value) {
            addCriterion("order_no >", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoGreaterThanOrEqualTo(String value) {
            addCriterion("order_no >=", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoLessThan(String value) {
            addCriterion("order_no <", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoLessThanOrEqualTo(String value) {
            addCriterion("order_no <=", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoLike(String value) {
            addCriterion("order_no like", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoNotLike(String value) {
            addCriterion("order_no not like", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoIn(List<String> values) {
            addCriterion("order_no in", values, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoNotIn(List<String> values) {
            addCriterion("order_no not in", values, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoBetween(String value1, String value2) {
            addCriterion("order_no between", value1, value2, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoNotBetween(String value1, String value2) {
            addCriterion("order_no not between", value1, value2, "orderNo");
            return (Criteria) this;
        }

        public Criteria andCompanyUuidIsNull() {
            addCriterion("company_uuid is null");
            return (Criteria) this;
        }

        public Criteria andCompanyUuidIsNotNull() {
            addCriterion("company_uuid is not null");
            return (Criteria) this;
        }

        public Criteria andCompanyUuidEqualTo(String value) {
            addCriterion("company_uuid =", value, "companyUuid");
            return (Criteria) this;
        }

        public Criteria andCompanyUuidNotEqualTo(String value) {
            addCriterion("company_uuid <>", value, "companyUuid");
            return (Criteria) this;
        }

        public Criteria andCompanyUuidGreaterThan(String value) {
            addCriterion("company_uuid >", value, "companyUuid");
            return (Criteria) this;
        }

        public Criteria andCompanyUuidGreaterThanOrEqualTo(String value) {
            addCriterion("company_uuid >=", value, "companyUuid");
            return (Criteria) this;
        }

        public Criteria andCompanyUuidLessThan(String value) {
            addCriterion("company_uuid <", value, "companyUuid");
            return (Criteria) this;
        }

        public Criteria andCompanyUuidLessThanOrEqualTo(String value) {
            addCriterion("company_uuid <=", value, "companyUuid");
            return (Criteria) this;
        }

        public Criteria andCompanyUuidLike(String value) {
            addCriterion("company_uuid like", value, "companyUuid");
            return (Criteria) this;
        }

        public Criteria andCompanyUuidNotLike(String value) {
            addCriterion("company_uuid not like", value, "companyUuid");
            return (Criteria) this;
        }

        public Criteria andCompanyUuidIn(List<String> values) {
            addCriterion("company_uuid in", values, "companyUuid");
            return (Criteria) this;
        }

        public Criteria andCompanyUuidNotIn(List<String> values) {
            addCriterion("company_uuid not in", values, "companyUuid");
            return (Criteria) this;
        }

        public Criteria andCompanyUuidBetween(String value1, String value2) {
            addCriterion("company_uuid between", value1, value2, "companyUuid");
            return (Criteria) this;
        }

        public Criteria andCompanyUuidNotBetween(String value1, String value2) {
            addCriterion("company_uuid not between", value1, value2, "companyUuid");
            return (Criteria) this;
        }

        public Criteria andPermissionUuidIsNull() {
            addCriterion("permission_uuid is null");
            return (Criteria) this;
        }

        public Criteria andPermissionUuidIsNotNull() {
            addCriterion("permission_uuid is not null");
            return (Criteria) this;
        }

        public Criteria andPermissionUuidEqualTo(String value) {
            addCriterion("permission_uuid =", value, "permissionUuid");
            return (Criteria) this;
        }

        public Criteria andPermissionUuidNotEqualTo(String value) {
            addCriterion("permission_uuid <>", value, "permissionUuid");
            return (Criteria) this;
        }

        public Criteria andPermissionUuidGreaterThan(String value) {
            addCriterion("permission_uuid >", value, "permissionUuid");
            return (Criteria) this;
        }

        public Criteria andPermissionUuidGreaterThanOrEqualTo(String value) {
            addCriterion("permission_uuid >=", value, "permissionUuid");
            return (Criteria) this;
        }

        public Criteria andPermissionUuidLessThan(String value) {
            addCriterion("permission_uuid <", value, "permissionUuid");
            return (Criteria) this;
        }

        public Criteria andPermissionUuidLessThanOrEqualTo(String value) {
            addCriterion("permission_uuid <=", value, "permissionUuid");
            return (Criteria) this;
        }

        public Criteria andPermissionUuidLike(String value) {
            addCriterion("permission_uuid like", value, "permissionUuid");
            return (Criteria) this;
        }

        public Criteria andPermissionUuidNotLike(String value) {
            addCriterion("permission_uuid not like", value, "permissionUuid");
            return (Criteria) this;
        }

        public Criteria andPermissionUuidIn(List<String> values) {
            addCriterion("permission_uuid in", values, "permissionUuid");
            return (Criteria) this;
        }

        public Criteria andPermissionUuidNotIn(List<String> values) {
            addCriterion("permission_uuid not in", values, "permissionUuid");
            return (Criteria) this;
        }

        public Criteria andPermissionUuidBetween(String value1, String value2) {
            addCriterion("permission_uuid between", value1, value2, "permissionUuid");
            return (Criteria) this;
        }

        public Criteria andPermissionUuidNotBetween(String value1, String value2) {
            addCriterion("permission_uuid not between", value1, value2, "permissionUuid");
            return (Criteria) this;
        }

        public Criteria andPermissionNameIsNull() {
            addCriterion("permission_name is null");
            return (Criteria) this;
        }

        public Criteria andPermissionNameIsNotNull() {
            addCriterion("permission_name is not null");
            return (Criteria) this;
        }

        public Criteria andPermissionNameEqualTo(String value) {
            addCriterion("permission_name =", value, "permissionName");
            return (Criteria) this;
        }

        public Criteria andPermissionNameNotEqualTo(String value) {
            addCriterion("permission_name <>", value, "permissionName");
            return (Criteria) this;
        }

        public Criteria andPermissionNameGreaterThan(String value) {
            addCriterion("permission_name >", value, "permissionName");
            return (Criteria) this;
        }

        public Criteria andPermissionNameGreaterThanOrEqualTo(String value) {
            addCriterion("permission_name >=", value, "permissionName");
            return (Criteria) this;
        }

        public Criteria andPermissionNameLessThan(String value) {
            addCriterion("permission_name <", value, "permissionName");
            return (Criteria) this;
        }

        public Criteria andPermissionNameLessThanOrEqualTo(String value) {
            addCriterion("permission_name <=", value, "permissionName");
            return (Criteria) this;
        }

        public Criteria andPermissionNameLike(String value) {
            addCriterion("permission_name like", value, "permissionName");
            return (Criteria) this;
        }

        public Criteria andPermissionNameNotLike(String value) {
            addCriterion("permission_name not like", value, "permissionName");
            return (Criteria) this;
        }

        public Criteria andPermissionNameIn(List<String> values) {
            addCriterion("permission_name in", values, "permissionName");
            return (Criteria) this;
        }

        public Criteria andPermissionNameNotIn(List<String> values) {
            addCriterion("permission_name not in", values, "permissionName");
            return (Criteria) this;
        }

        public Criteria andPermissionNameBetween(String value1, String value2) {
            addCriterion("permission_name between", value1, value2, "permissionName");
            return (Criteria) this;
        }

        public Criteria andPermissionNameNotBetween(String value1, String value2) {
            addCriterion("permission_name not between", value1, value2, "permissionName");
            return (Criteria) this;
        }

        public Criteria andPermissionPackageUuidIsNull() {
            addCriterion("permission_package_uuid is null");
            return (Criteria) this;
        }

        public Criteria andPermissionPackageUuidIsNotNull() {
            addCriterion("permission_package_uuid is not null");
            return (Criteria) this;
        }

        public Criteria andPermissionPackageUuidEqualTo(String value) {
            addCriterion("permission_package_uuid =", value, "permissionPackageUuid");
            return (Criteria) this;
        }

        public Criteria andPermissionPackageUuidNotEqualTo(String value) {
            addCriterion("permission_package_uuid <>", value, "permissionPackageUuid");
            return (Criteria) this;
        }

        public Criteria andPermissionPackageUuidGreaterThan(String value) {
            addCriterion("permission_package_uuid >", value, "permissionPackageUuid");
            return (Criteria) this;
        }

        public Criteria andPermissionPackageUuidGreaterThanOrEqualTo(String value) {
            addCriterion("permission_package_uuid >=", value, "permissionPackageUuid");
            return (Criteria) this;
        }

        public Criteria andPermissionPackageUuidLessThan(String value) {
            addCriterion("permission_package_uuid <", value, "permissionPackageUuid");
            return (Criteria) this;
        }

        public Criteria andPermissionPackageUuidLessThanOrEqualTo(String value) {
            addCriterion("permission_package_uuid <=", value, "permissionPackageUuid");
            return (Criteria) this;
        }

        public Criteria andPermissionPackageUuidLike(String value) {
            addCriterion("permission_package_uuid like", value, "permissionPackageUuid");
            return (Criteria) this;
        }

        public Criteria andPermissionPackageUuidNotLike(String value) {
            addCriterion("permission_package_uuid not like", value, "permissionPackageUuid");
            return (Criteria) this;
        }

        public Criteria andPermissionPackageUuidIn(List<String> values) {
            addCriterion("permission_package_uuid in", values, "permissionPackageUuid");
            return (Criteria) this;
        }

        public Criteria andPermissionPackageUuidNotIn(List<String> values) {
            addCriterion("permission_package_uuid not in", values, "permissionPackageUuid");
            return (Criteria) this;
        }

        public Criteria andPermissionPackageUuidBetween(String value1, String value2) {
            addCriterion("permission_package_uuid between", value1, value2, "permissionPackageUuid");
            return (Criteria) this;
        }

        public Criteria andPermissionPackageUuidNotBetween(String value1, String value2) {
            addCriterion("permission_package_uuid not between", value1, value2, "permissionPackageUuid");
            return (Criteria) this;
        }

        public Criteria andPermissionPackageNameIsNull() {
            addCriterion("permission_package_name is null");
            return (Criteria) this;
        }

        public Criteria andPermissionPackageNameIsNotNull() {
            addCriterion("permission_package_name is not null");
            return (Criteria) this;
        }

        public Criteria andPermissionPackageNameEqualTo(String value) {
            addCriterion("permission_package_name =", value, "permissionPackageName");
            return (Criteria) this;
        }

        public Criteria andPermissionPackageNameNotEqualTo(String value) {
            addCriterion("permission_package_name <>", value, "permissionPackageName");
            return (Criteria) this;
        }

        public Criteria andPermissionPackageNameGreaterThan(String value) {
            addCriterion("permission_package_name >", value, "permissionPackageName");
            return (Criteria) this;
        }

        public Criteria andPermissionPackageNameGreaterThanOrEqualTo(String value) {
            addCriterion("permission_package_name >=", value, "permissionPackageName");
            return (Criteria) this;
        }

        public Criteria andPermissionPackageNameLessThan(String value) {
            addCriterion("permission_package_name <", value, "permissionPackageName");
            return (Criteria) this;
        }

        public Criteria andPermissionPackageNameLessThanOrEqualTo(String value) {
            addCriterion("permission_package_name <=", value, "permissionPackageName");
            return (Criteria) this;
        }

        public Criteria andPermissionPackageNameLike(String value) {
            addCriterion("permission_package_name like", value, "permissionPackageName");
            return (Criteria) this;
        }

        public Criteria andPermissionPackageNameNotLike(String value) {
            addCriterion("permission_package_name not like", value, "permissionPackageName");
            return (Criteria) this;
        }

        public Criteria andPermissionPackageNameIn(List<String> values) {
            addCriterion("permission_package_name in", values, "permissionPackageName");
            return (Criteria) this;
        }

        public Criteria andPermissionPackageNameNotIn(List<String> values) {
            addCriterion("permission_package_name not in", values, "permissionPackageName");
            return (Criteria) this;
        }

        public Criteria andPermissionPackageNameBetween(String value1, String value2) {
            addCriterion("permission_package_name between", value1, value2, "permissionPackageName");
            return (Criteria) this;
        }

        public Criteria andPermissionPackageNameNotBetween(String value1, String value2) {
            addCriterion("permission_package_name not between", value1, value2, "permissionPackageName");
            return (Criteria) this;
        }

        public Criteria andStartTimeIsNull() {
            addCriterion("start_time is null");
            return (Criteria) this;
        }

        public Criteria andStartTimeIsNotNull() {
            addCriterion("start_time is not null");
            return (Criteria) this;
        }

        public Criteria andStartTimeEqualTo(Date value) {
            addCriterion("start_time =", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeNotEqualTo(Date value) {
            addCriterion("start_time <>", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeGreaterThan(Date value) {
            addCriterion("start_time >", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("start_time >=", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeLessThan(Date value) {
            addCriterion("start_time <", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeLessThanOrEqualTo(Date value) {
            addCriterion("start_time <=", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeIn(List<Date> values) {
            addCriterion("start_time in", values, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeNotIn(List<Date> values) {
            addCriterion("start_time not in", values, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeBetween(Date value1, Date value2) {
            addCriterion("start_time between", value1, value2, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeNotBetween(Date value1, Date value2) {
            addCriterion("start_time not between", value1, value2, "startTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeIsNull() {
            addCriterion("end_time is null");
            return (Criteria) this;
        }

        public Criteria andEndTimeIsNotNull() {
            addCriterion("end_time is not null");
            return (Criteria) this;
        }

        public Criteria andEndTimeEqualTo(Date value) {
            addCriterion("end_time =", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeNotEqualTo(Date value) {
            addCriterion("end_time <>", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeGreaterThan(Date value) {
            addCriterion("end_time >", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("end_time >=", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeLessThan(Date value) {
            addCriterion("end_time <", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeLessThanOrEqualTo(Date value) {
            addCriterion("end_time <=", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeIn(List<Date> values) {
            addCriterion("end_time in", values, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeNotIn(List<Date> values) {
            addCriterion("end_time not in", values, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeBetween(Date value1, Date value2) {
            addCriterion("end_time between", value1, value2, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeNotBetween(Date value1, Date value2) {
            addCriterion("end_time not between", value1, value2, "endTime");
            return (Criteria) this;
        }

        public Criteria andAmountIsNull() {
            addCriterion("amount is null");
            return (Criteria) this;
        }

        public Criteria andAmountIsNotNull() {
            addCriterion("amount is not null");
            return (Criteria) this;
        }

        public Criteria andAmountEqualTo(Double value) {
            addCriterion("amount =", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountNotEqualTo(Double value) {
            addCriterion("amount <>", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountGreaterThan(Double value) {
            addCriterion("amount >", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountGreaterThanOrEqualTo(Double value) {
            addCriterion("amount >=", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountLessThan(Double value) {
            addCriterion("amount <", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountLessThanOrEqualTo(Double value) {
            addCriterion("amount <=", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountIn(List<Double> values) {
            addCriterion("amount in", values, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountNotIn(List<Double> values) {
            addCriterion("amount not in", values, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountBetween(Double value1, Double value2) {
            addCriterion("amount between", value1, value2, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountNotBetween(Double value1, Double value2) {
            addCriterion("amount not between", value1, value2, "amount");
            return (Criteria) this;
        }

        public Criteria andDiscountIsNull() {
            addCriterion("discount is null");
            return (Criteria) this;
        }

        public Criteria andDiscountIsNotNull() {
            addCriterion("discount is not null");
            return (Criteria) this;
        }

        public Criteria andDiscountEqualTo(Double value) {
            addCriterion("discount =", value, "discount");
            return (Criteria) this;
        }

        public Criteria andDiscountNotEqualTo(Double value) {
            addCriterion("discount <>", value, "discount");
            return (Criteria) this;
        }

        public Criteria andDiscountGreaterThan(Double value) {
            addCriterion("discount >", value, "discount");
            return (Criteria) this;
        }

        public Criteria andDiscountGreaterThanOrEqualTo(Double value) {
            addCriterion("discount >=", value, "discount");
            return (Criteria) this;
        }

        public Criteria andDiscountLessThan(Double value) {
            addCriterion("discount <", value, "discount");
            return (Criteria) this;
        }

        public Criteria andDiscountLessThanOrEqualTo(Double value) {
            addCriterion("discount <=", value, "discount");
            return (Criteria) this;
        }

        public Criteria andDiscountIn(List<Double> values) {
            addCriterion("discount in", values, "discount");
            return (Criteria) this;
        }

        public Criteria andDiscountNotIn(List<Double> values) {
            addCriterion("discount not in", values, "discount");
            return (Criteria) this;
        }

        public Criteria andDiscountBetween(Double value1, Double value2) {
            addCriterion("discount between", value1, value2, "discount");
            return (Criteria) this;
        }

        public Criteria andDiscountNotBetween(Double value1, Double value2) {
            addCriterion("discount not between", value1, value2, "discount");
            return (Criteria) this;
        }

        public Criteria andMarksIsNull() {
            addCriterion("marks is null");
            return (Criteria) this;
        }

        public Criteria andMarksIsNotNull() {
            addCriterion("marks is not null");
            return (Criteria) this;
        }

        public Criteria andMarksEqualTo(String value) {
            addCriterion("marks =", value, "marks");
            return (Criteria) this;
        }

        public Criteria andMarksNotEqualTo(String value) {
            addCriterion("marks <>", value, "marks");
            return (Criteria) this;
        }

        public Criteria andMarksGreaterThan(String value) {
            addCriterion("marks >", value, "marks");
            return (Criteria) this;
        }

        public Criteria andMarksGreaterThanOrEqualTo(String value) {
            addCriterion("marks >=", value, "marks");
            return (Criteria) this;
        }

        public Criteria andMarksLessThan(String value) {
            addCriterion("marks <", value, "marks");
            return (Criteria) this;
        }

        public Criteria andMarksLessThanOrEqualTo(String value) {
            addCriterion("marks <=", value, "marks");
            return (Criteria) this;
        }

        public Criteria andMarksLike(String value) {
            addCriterion("marks like", value, "marks");
            return (Criteria) this;
        }

        public Criteria andMarksNotLike(String value) {
            addCriterion("marks not like", value, "marks");
            return (Criteria) this;
        }

        public Criteria andMarksIn(List<String> values) {
            addCriterion("marks in", values, "marks");
            return (Criteria) this;
        }

        public Criteria andMarksNotIn(List<String> values) {
            addCriterion("marks not in", values, "marks");
            return (Criteria) this;
        }

        public Criteria andMarksBetween(String value1, String value2) {
            addCriterion("marks between", value1, value2, "marks");
            return (Criteria) this;
        }

        public Criteria andMarksNotBetween(String value1, String value2) {
            addCriterion("marks not between", value1, value2, "marks");
            return (Criteria) this;
        }

        public Criteria andPayTypeIsNull() {
            addCriterion("pay_type is null");
            return (Criteria) this;
        }

        public Criteria andPayTypeIsNotNull() {
            addCriterion("pay_type is not null");
            return (Criteria) this;
        }

        public Criteria andPayTypeEqualTo(Byte value) {
            addCriterion("pay_type =", value, "payType");
            return (Criteria) this;
        }

        public Criteria andPayTypeNotEqualTo(Byte value) {
            addCriterion("pay_type <>", value, "payType");
            return (Criteria) this;
        }

        public Criteria andPayTypeGreaterThan(Byte value) {
            addCriterion("pay_type >", value, "payType");
            return (Criteria) this;
        }

        public Criteria andPayTypeGreaterThanOrEqualTo(Byte value) {
            addCriterion("pay_type >=", value, "payType");
            return (Criteria) this;
        }

        public Criteria andPayTypeLessThan(Byte value) {
            addCriterion("pay_type <", value, "payType");
            return (Criteria) this;
        }

        public Criteria andPayTypeLessThanOrEqualTo(Byte value) {
            addCriterion("pay_type <=", value, "payType");
            return (Criteria) this;
        }

        public Criteria andPayTypeIn(List<Byte> values) {
            addCriterion("pay_type in", values, "payType");
            return (Criteria) this;
        }

        public Criteria andPayTypeNotIn(List<Byte> values) {
            addCriterion("pay_type not in", values, "payType");
            return (Criteria) this;
        }

        public Criteria andPayTypeBetween(Byte value1, Byte value2) {
            addCriterion("pay_type between", value1, value2, "payType");
            return (Criteria) this;
        }

        public Criteria andPayTypeNotBetween(Byte value1, Byte value2) {
            addCriterion("pay_type not between", value1, value2, "payType");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Byte value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Byte value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Byte value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Byte value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Byte value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Byte value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Byte> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Byte> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Byte value1, Byte value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Byte value1, Byte value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andNoticeMsgIsNull() {
            addCriterion("notice_msg is null");
            return (Criteria) this;
        }

        public Criteria andNoticeMsgIsNotNull() {
            addCriterion("notice_msg is not null");
            return (Criteria) this;
        }

        public Criteria andNoticeMsgEqualTo(String value) {
            addCriterion("notice_msg =", value, "noticeMsg");
            return (Criteria) this;
        }

        public Criteria andNoticeMsgNotEqualTo(String value) {
            addCriterion("notice_msg <>", value, "noticeMsg");
            return (Criteria) this;
        }

        public Criteria andNoticeMsgGreaterThan(String value) {
            addCriterion("notice_msg >", value, "noticeMsg");
            return (Criteria) this;
        }

        public Criteria andNoticeMsgGreaterThanOrEqualTo(String value) {
            addCriterion("notice_msg >=", value, "noticeMsg");
            return (Criteria) this;
        }

        public Criteria andNoticeMsgLessThan(String value) {
            addCriterion("notice_msg <", value, "noticeMsg");
            return (Criteria) this;
        }

        public Criteria andNoticeMsgLessThanOrEqualTo(String value) {
            addCriterion("notice_msg <=", value, "noticeMsg");
            return (Criteria) this;
        }

        public Criteria andNoticeMsgLike(String value) {
            addCriterion("notice_msg like", value, "noticeMsg");
            return (Criteria) this;
        }

        public Criteria andNoticeMsgNotLike(String value) {
            addCriterion("notice_msg not like", value, "noticeMsg");
            return (Criteria) this;
        }

        public Criteria andNoticeMsgIn(List<String> values) {
            addCriterion("notice_msg in", values, "noticeMsg");
            return (Criteria) this;
        }

        public Criteria andNoticeMsgNotIn(List<String> values) {
            addCriterion("notice_msg not in", values, "noticeMsg");
            return (Criteria) this;
        }

        public Criteria andNoticeMsgBetween(String value1, String value2) {
            addCriterion("notice_msg between", value1, value2, "noticeMsg");
            return (Criteria) this;
        }

        public Criteria andNoticeMsgNotBetween(String value1, String value2) {
            addCriterion("notice_msg not between", value1, value2, "noticeMsg");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andPayTimeIsNull() {
            addCriterion("pay_time is null");
            return (Criteria) this;
        }

        public Criteria andPayTimeIsNotNull() {
            addCriterion("pay_time is not null");
            return (Criteria) this;
        }

        public Criteria andPayTimeEqualTo(Date value) {
            addCriterion("pay_time =", value, "payTime");
            return (Criteria) this;
        }

        public Criteria andPayTimeNotEqualTo(Date value) {
            addCriterion("pay_time <>", value, "payTime");
            return (Criteria) this;
        }

        public Criteria andPayTimeGreaterThan(Date value) {
            addCriterion("pay_time >", value, "payTime");
            return (Criteria) this;
        }

        public Criteria andPayTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("pay_time >=", value, "payTime");
            return (Criteria) this;
        }

        public Criteria andPayTimeLessThan(Date value) {
            addCriterion("pay_time <", value, "payTime");
            return (Criteria) this;
        }

        public Criteria andPayTimeLessThanOrEqualTo(Date value) {
            addCriterion("pay_time <=", value, "payTime");
            return (Criteria) this;
        }

        public Criteria andPayTimeIn(List<Date> values) {
            addCriterion("pay_time in", values, "payTime");
            return (Criteria) this;
        }

        public Criteria andPayTimeNotIn(List<Date> values) {
            addCriterion("pay_time not in", values, "payTime");
            return (Criteria) this;
        }

        public Criteria andPayTimeBetween(Date value1, Date value2) {
            addCriterion("pay_time between", value1, value2, "payTime");
            return (Criteria) this;
        }

        public Criteria andPayTimeNotBetween(Date value1, Date value2) {
            addCriterion("pay_time not between", value1, value2, "payTime");
            return (Criteria) this;
        }

        public Criteria andPayTradeNoIsNull() {
            addCriterion("pay_trade_no is null");
            return (Criteria) this;
        }

        public Criteria andPayTradeNoIsNotNull() {
            addCriterion("pay_trade_no is not null");
            return (Criteria) this;
        }

        public Criteria andPayTradeNoEqualTo(String value) {
            addCriterion("pay_trade_no =", value, "payTradeNo");
            return (Criteria) this;
        }

        public Criteria andPayTradeNoNotEqualTo(String value) {
            addCriterion("pay_trade_no <>", value, "payTradeNo");
            return (Criteria) this;
        }

        public Criteria andPayTradeNoGreaterThan(String value) {
            addCriterion("pay_trade_no >", value, "payTradeNo");
            return (Criteria) this;
        }

        public Criteria andPayTradeNoGreaterThanOrEqualTo(String value) {
            addCriterion("pay_trade_no >=", value, "payTradeNo");
            return (Criteria) this;
        }

        public Criteria andPayTradeNoLessThan(String value) {
            addCriterion("pay_trade_no <", value, "payTradeNo");
            return (Criteria) this;
        }

        public Criteria andPayTradeNoLessThanOrEqualTo(String value) {
            addCriterion("pay_trade_no <=", value, "payTradeNo");
            return (Criteria) this;
        }

        public Criteria andPayTradeNoLike(String value) {
            addCriterion("pay_trade_no like", value, "payTradeNo");
            return (Criteria) this;
        }

        public Criteria andPayTradeNoNotLike(String value) {
            addCriterion("pay_trade_no not like", value, "payTradeNo");
            return (Criteria) this;
        }

        public Criteria andPayTradeNoIn(List<String> values) {
            addCriterion("pay_trade_no in", values, "payTradeNo");
            return (Criteria) this;
        }

        public Criteria andPayTradeNoNotIn(List<String> values) {
            addCriterion("pay_trade_no not in", values, "payTradeNo");
            return (Criteria) this;
        }

        public Criteria andPayTradeNoBetween(String value1, String value2) {
            addCriterion("pay_trade_no between", value1, value2, "payTradeNo");
            return (Criteria) this;
        }

        public Criteria andPayTradeNoNotBetween(String value1, String value2) {
            addCriterion("pay_trade_no not between", value1, value2, "payTradeNo");
            return (Criteria) this;
        }

        public Criteria andPayMarksIsNull() {
            addCriterion("pay_marks is null");
            return (Criteria) this;
        }

        public Criteria andPayMarksIsNotNull() {
            addCriterion("pay_marks is not null");
            return (Criteria) this;
        }

        public Criteria andPayMarksEqualTo(String value) {
            addCriterion("pay_marks =", value, "payMarks");
            return (Criteria) this;
        }

        public Criteria andPayMarksNotEqualTo(String value) {
            addCriterion("pay_marks <>", value, "payMarks");
            return (Criteria) this;
        }

        public Criteria andPayMarksGreaterThan(String value) {
            addCriterion("pay_marks >", value, "payMarks");
            return (Criteria) this;
        }

        public Criteria andPayMarksGreaterThanOrEqualTo(String value) {
            addCriterion("pay_marks >=", value, "payMarks");
            return (Criteria) this;
        }

        public Criteria andPayMarksLessThan(String value) {
            addCriterion("pay_marks <", value, "payMarks");
            return (Criteria) this;
        }

        public Criteria andPayMarksLessThanOrEqualTo(String value) {
            addCriterion("pay_marks <=", value, "payMarks");
            return (Criteria) this;
        }

        public Criteria andPayMarksLike(String value) {
            addCriterion("pay_marks like", value, "payMarks");
            return (Criteria) this;
        }

        public Criteria andPayMarksNotLike(String value) {
            addCriterion("pay_marks not like", value, "payMarks");
            return (Criteria) this;
        }

        public Criteria andPayMarksIn(List<String> values) {
            addCriterion("pay_marks in", values, "payMarks");
            return (Criteria) this;
        }

        public Criteria andPayMarksNotIn(List<String> values) {
            addCriterion("pay_marks not in", values, "payMarks");
            return (Criteria) this;
        }

        public Criteria andPayMarksBetween(String value1, String value2) {
            addCriterion("pay_marks between", value1, value2, "payMarks");
            return (Criteria) this;
        }

        public Criteria andPayMarksNotBetween(String value1, String value2) {
            addCriterion("pay_marks not between", value1, value2, "payMarks");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}